
#include <BFolder>
#include <BApplication>

#include "FileDialog.h"

FileDialog::FileDialog(BWidget* parent) : BFileDialog(parent)
{

}
FileDialog::~FileDialog()
{

}

void FileDialog::popupEvent(const BEvent& event)
{
	if (this->symbolCount() == 0)
	{
		BFolder folder(BApplication::homePath());
		if (folder.open())
		{
			this->addSymbol(folder.entry("Desktop"));
			this->addSymbol(folder.entry("Downloads"));
			this->addSymbol(folder.entry("Pictures"));
			this->addSymbol(folder.entry("Videos"));
			this->addSymbol(folder.entry("Music"));
		}
	}

}
